/*
 * task_client.h
 *
 *  Created on: 2011. 2. 20
 *      Author: pts
 */

#ifndef TASK_CLIENT_H_
#define TASK_CLIENT_H_

int task_client_Download();
int msg_client_respond_req(char *p,int cmd,int len);
int msg_client_respond_download(char *p,int cmd,int len);

extern KTI_SubData_DL_CmdRsp_T stDLrsp;
extern KTI_SubData_DL_DataRsp_T stDLDataRsp;
extern int fdWR;
char *GetUdpCmd();

#define M_LOCAL_CMD_DATA_SIZE 500

typedef struct {
	int flag;
	int cnt_idle;
	int head;
	int tail;

	int size;
	char buf[M_LOCAL_CMD_DATA_SIZE+1];
} LOCAL_CMD_DATA_;
extern LOCAL_CMD_DATA_ lcd_data;

//#define M_DL_FILE_NAME_WR	"c:\\t.txt"
#define M_DL_FILE_NAME_WR	"/rcu_fw_file"
#define M_DL_FILE_NAME_ORIGIN	"./grcafw"
//#define M_DL_FILE_NAME_WR	"tt01.txt"
extern int iTimeOutDownload;
#define M_TimeOutDownload 15
#endif /* TASK_CLIENT_H_ */
